package com.smartfarm.Zhuangshiqi;

import com.smartfarm.Gongchang.AgriculturalMachine;
import com.smartfarm.Zhuangshiqi.MachineDecorator;

public class AutoDiagnosisDecorator extends MachineDecorator {
    public AutoDiagnosisDecorator(AgriculturalMachine machine) {
        super(machine);
    }

    @Override
    public void operate() {
        super.operate();
        addDiagnosisFunction();
    }

    private void addDiagnosisFunction() {
        System.out.println(" 启动设备自诊断系统");
    }
}